package com.blue.http.config;

import java.util.ArrayList;
import java.util.List;

import com.blue.http.config.MemAuthConfig;

public class MemeryAuthConfig extends MemAuthConfig 
{
	public MemeryAuthConfig()
	{
	}

	@Override
	protected String getAccount(String name)
	{
		return "blue123";
	}

	@Override
	protected List<String> listAccountRole(String name)
	{
		List<String> roleList = new ArrayList<>();
		roleList.add("admin");
		return roleList;
	}

	@Override
	protected List<String> listRoleUrl(String role)
	{
		List<String> urlList = new ArrayList<>();
		urlList.add("/echo");
		urlList.add("/upload");
		return urlList;
	}
	
}
